//
//  DACollectionFiles.h
//  DAKnowledge
//
//  Created by DreamArts on 16/8/26.
//  Copyright © 2016年 lidongyang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SVProgressHUD.h"

typedef void(^DACollectionFilesBlock)(NSMutableArray *array);
@interface DACollectionFiles : NSObject
@property (nonatomic, copy) NSString *fileCreate;
@property (nonatomic, copy) NSString *fileExtend;
@property (nonatomic, copy) NSString *fileID;
@property (nonatomic, copy) NSString *fileName;
@property (nonatomic, copy) NSString *fileSize;
@property (nonatomic, copy) NSString *fileType;
@property (nonatomic, copy) NSString *fileUrl;
@property (nonatomic, copy) NSString *folderName;
@property (nonatomic) BOOL isDownloading;

+ (DACollectionFiles *)shareDACollectionFiles;
/**
 *  根据userID获取收藏数组
 *
 *  @param userID userID
 *
 *  @return model数组
 */
- (NSMutableArray *)returnModelArrayInUserID:(NSString *)userID;
/**
 *  根据fileID 判断是否收藏过
 *
 *  @param fileID fileID
 *
 *  @return 返回bool值 是否收藏过
 */
- (BOOL)isContainCollectionsWith:(NSString *)fileID;

- (void)updateWithUserID:(NSString *)userID Block:(DACollectionFilesBlock)block;

@end
